# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=perl-alien-gmp
_pkgname=Alien-GMP
pkgver=1.16
pkgrel=7
pkgdesc='Alien package for the GNU Multiple Precision library.'
arch=('any')
url='https://metacpan.org/pod/Alien::GMP'
depends=('perl' 'perl-alien-base-modulebuild')
makedepends=('perl-devel-checklib')
license=('PerlArtistic')
options=('!emptydirs')
source=("https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/$_pkgname-$pkgver.tar.gz")
sha512sums=('cadf9ef0aa065dd8ce1ba9f3b2b3c369170edfe7faa41ea181192a27a17dce06dc3bd9a5a970fa8046466b9628dd4f8637d98494573b5d5e8148620c7db75459')

build() {
  cd "$_pkgname-$pkgver"

  perl Makefile.PL INSTALLDIRS=vendor

  make
}

package() {
  cd "$_pkgname-$pkgver"

  make DESTDIR="$pkgdir" install
}

